bindings: Avoid iterating array if it is never set
authorDaniel Boles <dboles@src.gnome.org>
Tue, 1 Aug 2017 19:41:23 +0000 (20:41 +0100)
committerDaniel Boles <dboles@src.gnome.org>
Tue, 1 Aug 2017 19:45:07 +0000 (20:45 +0100)
commit2b7db2376c54aa2c799c5bcb764fd888562c2dd3
treeb56086f75da15ff5aad1956f23e714535b65714e
parent79bbd4aca5be5dd702d9b484b06f65b8bf7a1b2d
bindings: Avoid iterating array if it is never set

If query.return_type is not one we want, binding_compose_params() is
not called, and so params remains a NULL pointer. However, the code was
then unconditionally iterating it regardless. Don't if it is still NULL.

CID 1452218 (#1 of 1): Explicit null dereferenced (FORWARD_NULL)
15. var_deref_op: Dereferencing null pointer params.
gtk/gtkbindings.c